package com.itruth.util;

public interface Constant {
	
	String IP = "112.10.152.99";
	
	String URL = "http://" + IP + ":8080/itruth";
	
	String DEFAULT_CHARSET = "UTF-8";
	
	/********************配置***********************/
	
	/**
	 * 每天最多可写的感悟数量
	 */
	int MAX_WRITE_TIMES = 300000000;
	
	
	/********************请求/响应状态*********************/
	
	int REQUEST_FAIL = 0x01;
	
	int RESPONSE_OK = 0x02;
	
	int RESPONSE_FAIL = 0x04;
	
	int RESPONSE_TIMEOUT = 0x08;
	
	/********************通信协议代码*********************/
	
	/**
	 * 服务器收到请求，并处理成功
	 */
	String RES_SUCCESS = "0x00";
	
	/**
	 * 注册时，用户名已经存在
	 */
	String REG_ACCOUNT_EXIST = "0x01";
	
}
